ReadableBase.prototype.[Symbol.asyncDispose] - Node documentation
method ReadableBase.prototype.[Symbol.asyncDispose]

Usage in Deno

import { ReadableBase } from "node:stream";
ReadableBase.prototype.[Symbol.asyncDispose](): Promise<void>

Calls readable.destroy() with an AbortError and returns a promise that fulfills when the stream is finished.

Return Type

Promise<void>